package com.power.sifa.correction.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.power.sifa.correction.model.Cre_work_repeat;
import com.power.sifa.correction.model.pageInfo.Cre_work_repeatPageInfo;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  再办任务 Feign
 */
public interface ICre_work_repeatFeign {

    /**
     * 再办任务分页列表
     */
    @PostMapping("/cre_work_repeat/list")
    ResponseDTO list(@RequestBody Cre_work_repeatPageInfo cre_work_repeatPageInfo);

    /**
    * 查看再办任务
    */
    @GetMapping("/cre_work_repeat/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除再办任务
    */
    @PostMapping("/cre_work_repeat/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看再办任务 复合主键使用
    // */
    //@PostMapping("/cre_work_repeat/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Cre_work_repeat.Cre_work_repeatPK pk);

    /**
     * 修改或保存再办任务
     */
    @PostMapping("/cre_work_repeat/save")
    ResponseDTO save(@RequestBody Cre_work_repeat  cre_work_repeat);

    ///**
    // * 删除再办任务 复合主键使用
    // */
    //@PostMapping("/cre_work_repeat/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Cre_work_repeat.Cre_work_repeatPK pk);
    
    /**
     * 批量删除再办任务
     */
    @PostMapping("/cre_work_repeat/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);
    
     /**
     * 导出excel
     */
    @PostMapping("/cre_work_repeat/output")
    void output(HttpServletResponse response, @RequestBody Cre_work_repeatPageInfo cre_work_repeatPageInfo);
        
     /**
     * 导出excel模板
     */
    @PostMapping("/cre_work_repeat/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);
    
     /**
     *	导入excel
     */
    @PostMapping("/cre_work_repeat/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;
    
}
